iCloud for Developers (for Jan S Morrison) by Cesare Rocchi

iCloud for Developers (for Jan S Morrison) by Cesare Rocchi

Author:Cesare Rocchi
Language: eng
Format: epub
Tags: Pragmatic Bookshelf
ISBN: 978-1-937785-60-4
Publisher: The Pragmatic Bookshelf, LLC (436473)


​SMGroceryItem​ will no longer extend ​UIDocument​ because it will now be used just to hold data, without directly implementing methods to interact with iCloud. It will become a simple class just to model a single item. Objects in memory cannot be stored directly on disk. Whether you are using iCloud or not, a class that wants to persist data on disk has to implement the ​NSCoding​ protocol, which is the basis of serializing objects on disk. The class stores an item’s name as an instance string variable.

Grocery-chp5/Grocery/SMGroceryItem.h

​ #import <UIKit/UIKit.h>



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.